Fix logic for returning to and yanking from Rmail buffer.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Apr 2012 19:17:59 +0000 (12:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Apr 2012 19:17:59 +0000 (12:17 -0700)
commita1aa342db75dc5d3356b2b45be28627df7209c7c
treeb23d4ba6815e187ca0411791062cb84bff08cb1a
parent804757837127d168bb6dda9fe3052a7ddabcb0f1
Fix logic for returning to and yanking from Rmail buffer.

* mail/rmail.el (rmail-start-mail):
Pass (rmail-mail-return...) for the return-action.
Pass (rmail-yank-current-message...) for the yank-action.
(rmail-yank-current-message): New function.
(rmail-mail): Pass the Rmail buffer, not view buffer, for replybuffer.
(rmail-reply): Likewise.
(rmail-forward): Pass the Rmail buffer, not nil, for replybuffer.

* mail/sendmail.el (mail-bury): Choose the first rmail-mode
buffer, not the last.  Reject temp buffers.  Use the rmail-mode
buffer, not newbuf.
lisp/ChangeLog
lisp/mail/rmail.el
lisp/mail/sendmail.el